<?php 
	jimport('joomla.application.component.model');
	class kinh_doanhModeldanh_sach_kho extends JModel
	{
        //danh sach kho	   
		function ds_kho()
        {
            $db = &JFactory::getDBO();
            $sql = "SELECT *
                FROM #__erp_warehouse
                WHERE type = 0
                AND enable = 1";
            $db->setQuery($sql);
            return $db->loadObjectList();
        }
        

	}
?>